<?php

namespace App\Http\Controllers\Backend;

use App\Http\Controllers\Controller;
use App\Model\BackendUserModel;
use Illuminate\Support\Facades\Auth;

/**
 * 首页
 * Class IndexController
 * @package App\Http\Controllers\Backend
 */
class IndexController extends Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->middleware('auth');
    }

    // 主页
    public function index()
    {
        $this->data['title'] = '首页';
        $this->showSidebar();
        return view('backend.index.index', $this->data);
    }
}
